package com.wy.dao;

import com.wy.pojo.Postion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PostionDao extends JpaRepository<Postion,Integer> {

    @Query(value = "select * from postion where id=?1",nativeQuery = true)
    public List<Postion> findBId(Integer id);
}
